package org.alex.nettychat.netty.custom.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.alex.nettychat.netty.custom.protocol.GetGroupInfoResponsePacket;



/**
 * 创建群里请求
 */
public class GetGroupInfoResponseHandler extends SimpleChannelInboundHandler<GetGroupInfoResponsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, GetGroupInfoResponsePacket responsePacket) throws Exception {
        System.out.println("群聊成员:"  + responsePacket.getUsernameList().toString());
    }
}
